<!DOCTYPE html>
<?php
	write_session('rURL',uri_string());
?>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="robots" content="follow, index">

<title><?= $template['title'];?> </title>
<?= $template['metadata'];?>
<?= setting('google_analytics');?>

<!-- Twitter -->
<meta name="twitter:card" content="summary">
<meta name="twitter:site"
	content="@<?php echo setting('web_title');?>">
<meta name="twitter:creator" content="<?php echo setting('web_title');?>">
<meta name="twitter:title" content="<?php echo setting('meta_title');?>">
<meta name="twitter:description"
	content="<?php echo setting('meta_description');?>">
<meta name="twitter:image" content="">
<!-- Facebook Open Graph -->
<meta property="og:title" content="<?php echo setting('web_title');?>" />
<meta property="og:type" content="website" />
<meta property="og:description" content="<?php echo setting('meta_description');?>" />
<meta property="og:image" content="" />
<meta property="og:url" content="<?php echo current_url();?>" />
<meta property="og:site_name" content="<?php echo setting('web_title');?>" />
<!-- Google Plus -->
<meta itemprop="name" content="<?php echo setting('web_title');?>" />
<meta itemprop="image" content="" />
<meta itemprop="description" content="<?php echo setting('meta_description');?>" />

<!-- Styles -->

<?php
// add logic if user is logged in to flush the assets cache
// Assets::clear_cache();
?>

<?php Assets::css($this->config->item('theme_css')); ?>
<link
	href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css"
	rel="stylesheet">
<link href="<?= base_url();?>assets/css/style.css" rel="stylesheet">
<link href="<?= base_url();?>assets/css/ypstyle.css" rel="stylesheet">
<link href="<?= base_url();?>assets/css/jquery-ui.css" rel="stylesheet">
<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
          <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
        <![endif]-->
<!-- JS -->
<?php Assets::cdn($this->config->item('theme_jscdn')); ?>
<?php  Assets::js($this->config->item('theme_js')); ?>

<script src="<?= base_url();?>assets/js/jquery-ui-1.10.3.custom.js"></script>


<!-- favicon -->
<link rel="shortcut icon"
	href="<?php echo base_url('assets/img/ico/favicon.ico'); ?>">
</head>

<body data-baseurl="<?= base_url(); ?>">

	<section class="header">
		<?php
		if (isset($template['partials']['header']))
			echo $template['partials']['header'];
		?>
	</section>

	<div class="row">
		<div class="container">

			<div class="col-md-8">

	<?php echo $template['body'];?>
			</div>



			<div class="col-md-4">

				<div class="pin">
					<div class="col2">
						<div class="list">
						<?php foreach($banner as $banner):?>
							<div class="item">

								<img class="img-responsive"
									src="<?=base_url()?>assets/img/advertisement/<?= $banner->value;?>"
									contenteditable="false">

							</div>
							<?php endforeach;?>

						</div>
					</div>
				</div>


				<?php
				if (isset($widget_recent_listing) && $widget_recent_listing == TRUE)
					echo Modules::run('widget/recent_listing/show');
				?>


			</div>



		</div>
		<!--/row-->

	</div>























	<?php
		if (isset($template['partials']['footer']))
			echo $template['partials']['footer'];
		?>
<!-- 	<section class="footer">
		<div class="container">sdfs</div>
	</section>
 -->







</body>


</html>
